import 'package:flutter/material.dart';
import 'package:photoxia/screen/PhotoSetting.dart';

class PhotoAdjust extends StatefulWidget {
  const PhotoAdjust({super.key});

  @override
  State<PhotoAdjust> createState() => _PhotoAdjustState();
}

class _PhotoAdjustState extends State<PhotoAdjust> {
  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return Scaffold(
      appBar: AppBar(
        actions: [
          Container(
            margin: EdgeInsets.symmetric(horizontal: 30),
            padding: EdgeInsets.symmetric(vertical: 5, horizontal: 20),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.circular(20),
                border: Border.all(
                  color: Color(0xffFF876B),
                )),
            child: Text(
              'Next',
              style: TextStyle(
                color: Color(0xffFF876B),
              ),
            ),
          )
        ],
      ),
      body: Padding(
        padding: const EdgeInsets.only(left: 15.0, bottom: 50),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            PhotoImg(size: size),
            const Expanded(
                child: Align(
              alignment: Alignment.centerLeft,
              child: Text(
                'Adjust',
                style: TextStyle(fontSize: 18),
              ),
            )),
            const SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: Row(
                children: [
                  PhotoFilteritem(
                    img: 'assets/PhotoAdjust1.png',
                    text: 'Sarah Morgan',
                  ),
                  PhotoFilteritem(
                    img: 'assets/PhotoAdjust2.png',
                    text: 'The monkey',
                  ),
                  PhotoFilteritem(
                    img: 'assets/PhotoAdjust3.png',
                    text: 'Curabiturt',
                  ),
                  PhotoFilteritem(
                    img: 'assets/PhotoAdjust1.png',
                    text: 'Sarah Morgan',
                  ),
                ],
              ),
            )
          ],
        ),
      ),
    );
  }
}
